<template>
  <div>
    <div class="title">
      <ul>
        <li @click="GetBack">
          <img src="../../assets/images/goback.png" alt="" />
        </li>
        <li>订单详情</li>
        <li>取消订单</li>
      </ul>
    </div>
    <!-- 支付状态 -->
    <div class="state">
      <div>等待买家付款</div>
      <div>00时01分56秒后自动取消订单</div>
    </div>
    <!-- 个人信息 -->
    <div class="personal">
      <div><img src="../../assets/images/xuanzhi.png" alt="" /></div>
      <div>
        <div>阿卡丽 13332322332</div>
        <br />
        <div>北京西城区大望路酒仙桥村</div>
      </div>
      <div>
        <div><img src="../../assets/images/next.png" alt="" /></div>
      </div>
    </div>

    <div class="introduce">
      <router-link to="/LineItem" tag="div"
        ><img :src="url" alt=""
      /></router-link>
      <div class="introduce-text">
        <div>{{title}}</div>
        <div>合计：￥ 360</div>
      </div>
    </div>
    <!-- 数量 -->
    <div>
      <div class="sum-number">
        <div>数量</div>
        <router-link to='/MyOrder' tag="div">共27件 <span> ></span></router-link>
      </div>
    </div>
    <!-- 支付金额 -->
    <div class="sum">
      <div>
        <span>支付金额</span>
        <span>￥{{price}}</span>
      </div>
      <div>
        <span>运费</span>
        <span>(全国包邮)</span>
        <span>￥0</span>
      </div>
    </div>
    <!-- 支付方式 -->
    <div class="way">
      <div>支付方式</div>
      <div>未付款</div>
    </div>
    <!-- 优惠券 -->
    <div class='discount'>
        <div>
            <div>使用优惠券</div>
        </div>
        <div>
            <div>使用积分抵现</div>
        </div>
    </div>
       <!-- 订单编号 -->
       <div class='logistics'>
           <div>订单编号 2018025011232</div>
           <div>下单时间 2018-02-05 13:28</div>
       </div>
       <!-- 总价 -->
          
          <div class='money'>
               <div>总价 :<span>￥{{price}}</span></div>
             <div><span>立即支付</span></div>

          </div>


  </div>
</template>

<script>
import api from '../../api'
export default {
  name: "LineItem",
  data(){
  return{
      price:'' ,
           title:'',
           url:''
  }
  },
    mounted(){
      api.getJxtz().then(res=>{
      
          this.price=res.data.list[0].price
          this.title=res.data.list[0].title
          this.url=res.data.list[0].url
      })
  },

  methods: {
    GetBack() {
      this.$router.push("/pay");
    },
  },
};
</script>

<style scoped>
.title {
  width: 100%;
  height: 50px;
  background-color: white;
}
ul {
  width: 100%;
}
ul li {
  float: left;
}

ul li:nth-child(1) {
  width: 19px;
  margin-left: 2%;
  margin-top: 3%;
  margin-bottom: 5%;
}
ul li:nth-child(2) {
  margin-left: 37%;
  font-size: 19px;
  line-height: 50px;
}
ul li:nth-child(3) {
  float: right;
  line-height: 50px;
  margin-right: 2%;
  font-size: 16px;
}
/* 支付状态 */
.state {
  width: 100%;
  height: 70px;
  background-color: #a9a9a9;
  color: white;
}
.state div:nth-child(1) {
  font-size: 18px;
  padding-top: 3%;
  margin-left: 3%;
}
.state div:nth-child(2) {
  font-size: 14px;
  margin-left: 4%;
}
.personal {
  width: 100%;
  height: 70px;
  background-color: white;
  box-sizing: border-box;
}
.personal img {
  width: 24px;
}
.personal div:nth-child(1) {
  float: left;
  margin-left: 3%;
  margin-top: 4.5%;
  margin-right: 3%;
}
.personal div:nth-child(2) {
  float: left;
  margin-top: 2%;
}
.personal div:nth-child(3) {
  float: right;
  padding-top: 5%;
  margin-right: 3px;
}

/* 图片 */
.introduce img {
  width: 84px;
  height: 84px;
  margin-left: 11px;
  margin-top: 11px;
  float: left;
}
.introduce div:nth-child(2) {
  width: 260px;
}
.introduce {
  overflow: hidden;
}
.introduce div {
  float: left;
}
.introduce-text {
  margin-top: 10px;
  margin-left: 8px;
}
.introduce-text div:nth-child(1) {
  width: 230px;
  height: 40px;
  font-size: 18px;
}
.introduce-text div:nth-child(2) {
  margin-top: 27px;
  color: #808080;
}
.sum-number div {
  float: left;
}
.sum-number {
  overflow: hidden;
  margin-bottom: 10px;
}
.sum-number div:nth-child(2) {
  float: right;
  margin-right: 15px;
  margin-top: 15px;
}
.sum-number div:nth-child(1) {
  float: left;
  margin-left: 11px;
  margin-top: 15px;
}
.sum-number div span {
  font-size: 20px;
}
/* 支付金额  */
.sum {
  width: 100%;
  height: 98px;
  background-color: white;
}
.sum div:nth-child(1) {
  height: 50px;
  line-height: 50px;
  font-size: 15px;
}
.sum div:nth-child(1) span:nth-child(1) {
  float: left;
  margin-left: 11px;
  color: #808080;
}
.sum div:nth-child(1) span:nth-child(2) {
  float: right;
  margin-right: 11px;
  color: red;
}
.sum div:nth-child(2) {
  height: 50px;
  line-height: 50px;
  font-size: 15px;
}
.sum div:nth-child(2) span:nth-child(1) {
  margin-left: 11px;
  color: #808080;
}
.sum div:nth-child(2) span:nth-child(2) {
  margin-left: 19px;
  font-size: 12px;
  color: #a9a9a9;
}
.sum div:nth-child(2) span:nth-child(3) {
  float: right;
  margin-right: 11px;

}
.way {
  width: 100%;
  height: 50px;
  background-color: white;
  margin-top:10px;

 
}
.way div:nth-child(1) {
  float: left;
  line-height: 50px;
   font-size: 15px;
   margin-left: 11px;
}
.way div:nth-child(2) {
  float: right;
   line-height: 50px;
 font-size: 15px;
 margin-right: 11px;
}
/* 优惠券 */
.discount{
    width:100%;
    height:100px;
     background-color: white;
     margin-top:10px;
}
.discount div:nth-child(1){
    height:50px;
     border-bottom: 1px solid #dcdcdc;
     line-height: 50px;
    margin-left: 5px;
 font-size: 15px;
}
.discount div:nth-child(2){
     height:50px;
       line-height: 50px;
     margin-left: 5px;
}
/* 订单编号 */
.logistics {
    width:100%;
    height:63px;
    background-color:white ;
    margin-top:10px;
     color: #a9a9a9;
}
.logistics div:nth-child(1){
    padding-top:10px;
    margin-left: 10px;
}
.logistics div:nth-child(2){
    padding-top:9px;
    margin-left: 10px;
}
/* 总价 */
.money{
    width:100%;
    height:60px;
    background-color: white;
    position: fixed;
    bottom: 0;
    left:0
    
}
.money div:nth-child(1){
    line-height: 50px;
    margin-left: 11px;
    width:60%;
    font-size:18px;
    color:black;
    float:left;

}
.money div:nth-child(1) span{
    color:red;
    margin-left: 6px;
}
.money div:nth-child(2){
  float:right;
  line-height: 50px;
  background-color:  	#696969;
    width:30%;
     color:white;
   
     }
     .money div:nth-child(2) span{
       margin-left: 25px;
       font-size:17px;
     }
</style>